package org.lex.utils.text;

import java.util.StringTokenizer;

public class StringDelimiterTokenizer implements Tokenizer {
	private StringTokenizer st = null;

	public StringDelimiterTokenizer(String str) {
		this.st = new StringTokenizer(str);
	}

	public StringDelimiterTokenizer(String str, String delimiter) {
		this(str, delimiter, false);
	}

	public StringDelimiterTokenizer(String str, String delimiter, boolean delimiterIsToken) {
		this.st = new StringTokenizer(str, delimiter, delimiterIsToken);
	}

	public boolean hasNext() {
		return st.hasMoreTokens();
	}

	public String next() {
		return st.nextToken();
	}

	public void remove() {
	}
}
